package com.skeleton.web.blog.control;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("blog/")
public class BlogJspControl {

	protected Logger logger = LogManager.getLogger(this.getClass());
	
	@RequestMapping("index")
	public String index() {
		logger.info("-----blog-----index-----------------");
		return "jsp/blog/index";
	}

	@RequestMapping("write")
	public String write() {
		logger.info("-----blog-----write-----------------");
		return "jsp/blog/write";
	}

	@RequestMapping("article")
	public String article() {
		logger.info("-----blog-----article-----------------");
		return "jsp/blog/article";
	}

}
